<#include "../common/constant.ftl" />
<title>打赏订单列表</title>
<form class="form-horizontal" role="form" id="validation-form" method="POST" action="${ctx}/admin/order/awardList${suffix}" onsubmit="return fromSearch(this)">
	订单编号:<input type="input" name="name" value="${pager.searchMap.title!''}" id="title"/>
	<button class="btn btn-minier btn-success" type="submit"><i class="fa fa-search"></i>搜  索</button>
</form>
<div class="hr hr-5"></div>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th class="center" width="10%">订单编号</th>
						<th class="center" width="10%">退款编号</th>
						<th class="center" width="6%">用户ID</th>
						<th class="center" width="10%">订单类型</th>
						<th class="center" width="8%">订单金额</th>
						<th class="center" width="8%">退款金额</th>
						<th class="center" width="12%">退款状态</th>
						<th class="center" width="15%">申请时间</th>
						<th class="center" width="12%">到账时间</th>
					</tr>
				</thead>
				<tbody>
				<#list pager.itemList as order>
					<tr>
						<td class="center">${order.id}</td>
						<td class="center">${order.refundNo!""}</td>
						<td class="center">${order.collocationExt.id!""}</td>
						<td class="center">${orderType[order.type]}</td>
						<td class="center">${tagUtils.fromatMoney(order.transactionPrice!'0')}元</td>
						<td class="center">${tagUtils.fromatMoney(order.transactionPrice!'0')}元</td>
						<td class="center"> ${orderRefundStausOptions[order.refundStatus]}</td>
						<td class="center">${tagUtils.formatDate(order.refundCreateTime!'0')}</td>
						<td class="center"><#if refundTime??>${tagUtils.formatDate(order.transactionPrice!'0')}</#if></td>
						<!--
						<td class="center">
						<div class="btn-group center">
									<button data-toggle="dropdown" class="btn btn-warning dropdown-toggle">
											操作列表
									</button>
									<ul class="dropdown-menu dropdown-warning">
										
										<li>
											<a href="${ctx}/admin/moneyLog/1/detail${suffix}">
											<i class="list icon-check"></i>详情
											</a>
										</li>
										<li>
											<a href="${ctx}/admin/moneyLog/1/doAudit${suffix}?resutCode=pass">
											<i class="list icon-check"></i>已转入账
											</a>
										</li>
									
										<li>
											<a href="${ctx}/admin/moneyLog/1/doAudit${suffix}?resutCode=pass">
											<i class="list icon-check"></i>信息有误
											</a>
										</li>
									</ul>
							</div>
						</td>
						-->
					</tr>
				</#list>
				</tbody>
			</table>
		</div><!-- /.table-responsive -->
		
		<div class="hr hr-18 dotted hr-double"></div>
		<@h.page pager=pager action="${ctx}/admin/order/awardList${suffix}" />
	</div><!-- /span -->
</div><!-- /row -->

<script>


function fromSearch(f){
	if(f.informationTypeId.value) {
		f.pager.value += "$$informationTypeId--" + f.informationTypeId.value;
	}
	if(f.title.value){
		f.pager.value += "$$title--" + f.title.value;
	}
	location.href = f.action + "?pager=" + f.pager.value;
	return false;
}

$(document).ready(function(){


$(document).ready(function(){
	RP.addBreadcrumb([{name:"搭配师列表", linkUrl:"${ctx}/admin/collocation/list${suffix}", active: true}]);
	<!--RP.Breadcrumbs.add("${ctx}/admin/collocation/add${suffix}","添加搭配师")-->
});
});
</script>
